package cn.pzaily.orange.manage.service;

import cn.pzaily.orange.core.service.BaseServiceInterface;
import cn.pzaily.orange.manage.model.SysMenu;
import cn.pzaily.orange.manage.model.vo.SysMenuTreeNode;

import java.util.List;

public interface SysMenuService extends BaseServiceInterface<SysMenu> {


    /**
     * 根据用户名查询权限
     *
     * @param name
     * @return
     */
    List<SysMenu> findByUserName(String name);

    List<SysMenuTreeNode> findTree(String userName, int i);
}
